package com.itheima.health;

import com.itheima.health.utils.QiniuUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling //开启定时任务支持
public class JobsApplication {

    public static void main(String[] args) {
        SpringApplication.run(JobsApplication.class, args);
    }
    @Bean
    @ConfigurationProperties(prefix = "qiniu")
    public QiniuUtils qiniuUtils(){
        return new QiniuUtils();
    }

}